package com.bingo.facadeImpl;

import com.bingo.daoImpl.BaseDAO;
import com.bingo.facade.Ifacade;

public class FacadeImpl implements Ifacade {
	
	protected BaseDAO baseDao;
	
	public BaseDAO getBaseDao() {
		return baseDao;
	}

	public void setBaseDao(BaseDAO baseDao) {
		this.baseDao = baseDao;
	}

	public void delete(String sqlSwitch,Object obj) throws Exception {
		baseDao.delete(sqlSwitch, obj);
	}

	public void insert(String sqlSwitch,Object obj) throws Exception {
		baseDao.delete(sqlSwitch, obj);
	}

	/**
	 * @author Lipsion
	 * @param 获得对象
	 */
	public Object select(String sqlSwitch, Number primaryKey) throws Exception {
		return baseDao.select(sqlSwitch,primaryKey);
	}

	/**
	 * @author Lipsion
	 * @param 更新对象
	 */
	public void update(String sqlSwitch,Object obj) throws Exception {
		baseDao.update(sqlSwitch, obj);
	}

}
